﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Windows;
using System.Windows.Media;

namespace WQDSkin.Forms.Controls.Help
{
    public static class ControlsHelper
    {
        public static readonly DependencyProperty CornerRadiusProperty
            = DependencyProperty.RegisterAttached(
                "CornerRadius",
                typeof(CornerRadius),
                typeof(ControlsHelper),
                new FrameworkPropertyMetadata(new CornerRadius(), 
                    FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender));
 
        [Category(AppName.MahApps)]
        public static CornerRadius GetCornerRadius(UIElement element)
        {
            return (CornerRadius)element.GetValue(CornerRadiusProperty);
        } 
        [Category(AppName.MahApps)]
        public static void SetCornerRadius(UIElement element, CornerRadius value)
        {
            element.SetValue(CornerRadiusProperty, value);
        } 



        public static readonly DependencyProperty MouseOverBackgroundProperty =
           DependencyProperty.RegisterAttached("MouseOverBackground",
               typeof(Brush),
               typeof(ControlsHelper),
               new UIPropertyMetadata(WQDSystemColors.ThemeBackground));
        public static Brush GetMouseOverBackground(DependencyObject obj)
        { 
            return (Brush)obj.GetValue(MouseOverBackgroundProperty);
        }
        public static void SetMouseOverBackground(DependencyObject obj, Brush value)
        {
            obj.SetValue(MouseOverBackgroundProperty, value);
        }



        public static Brush GetMouseOverBorder(DependencyObject obj)
        {
            return (Brush)obj.GetValue(MouseOverBorderProperty);
        } 
        public static void SetMouseOverBorder(DependencyObject obj, Brush value)
        {
            obj.SetValue(MouseOverBorderProperty, value);
        } 
        public static readonly DependencyProperty MouseOverBorderProperty =
            DependencyProperty.RegisterAttached("MouseOverBorder",
                typeof(Brush),
                typeof(ControlsHelper),
                new PropertyMetadata(WQDSystemColors.ThemeBackground));

    }
}
